package com.cyrus.rabbitm.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: Cyrus
 * @CreateDate: 2020/12/1
 */
@Component
public class RabbitMQListener  {
    /**
     * 自动签收
     */
   // @RabbitListener(queues = "boot_queue")
    public void ListenerQueue(Message message) {
        System.out.println(new String(message.getBody()));
    }
}
